package dk.twu.analyzer.console.model;

import dk.twu.analyzer.model.ITDRecord;

import java.util.Collection;

/**
 * Created by TW on 12/20/2014.
 */
public class ITDRecordCollection implements ICommandElement {
    private final Collection<ITDRecord> itdRecords;

    public ITDRecordCollection(Collection<ITDRecord> itdRecords) {
        this.itdRecords = itdRecords;
    }

    public Collection<ITDRecord> getItdRecords() {
        return itdRecords;
    }

    public int size() {
        if (itdRecords != null) {
            return itdRecords.size();
        } else {
            return 0;
        }
    }

    @Override
    public String getShortDescription() {
        return "ITDRecordCollection[" + size() + "]";
    }
}
